package sb.simple.wrapper.common;

/**
 * 自定义异常
 */
public class CustomException extends RuntimeException {

    private static final long serialVersionID = 1L;

    protected int errorCode;

    protected String errorMsg;

    public CustomException() {

    }

    public CustomException(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
